<?php
	/* Define application level variables */
	require_once './application.php';
	/* Check for a valid user */
	include('security.php');
	/* Decide what to do based on post object and method */
	if (isset($_POST['myObject']) && isset($_POST['myMethod']))
	{
		$obj = $_POST['myObject'];
		$mtd = $_POST['myMethod'];
		if (isset($_POST['myArgs']))
		{
			$args =$_POST['myArgs'];
			$res = $_SESSION[$obj]->$mtd($args);
			echo $res;
		}
		else
		{
			$res = $_SESSION[$obj]->$mtd();
			echo $res;
		}
	}
	else
	{

	}
?>
